export default class Button {
    constructor() {
      this.plugin = {
        name: "椰奶状态按钮",
        dsc: "椰奶状态按钮",
        priority: 101,
        rule: [
            {
              reg: '^#?椰奶状态',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?状态',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?状态pro',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?椰奶状态pro',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?土块状态pro',
              fnc: 'buttonCenter'
            },
            {
              reg: '^#?土块状态',
              fnc: 'buttonCenter'
            }
        ]
      }
    }
    async buttonCenter(e){
      const game = (e.game === 'sr' || e.isSr) ? '星铁' : ''
      const list = [
        [
          { label: '椰奶状态', callback: `/椰奶状态` },
          { label: '土块状态', callback: `/土块状态` },
        ],[
          { label: '椰奶状态pro', callback: `/椰奶状态pro` },
          { label: '土块状态pro', callback: `/土块状态pro` },
        ],[
          { label: 'dau', callback: `/dau` },
          { label: '帮助', callback: `/帮助` },
        ]
      ]
      return Bot.Button(list)
    }
  }